function nursingLevelPicLayerOpen(nursingCostNo){
	layer.open({
		type: 1,
		title: false, //不显示标题栏
		closeBtn: false,
		area: ["$('div#pop-con') + width() + 'px'", ''],
		shade: 0.5,
		id: 'nursingLevelPicLayerOpen', //设定一个id，防止重复弹出
		/*,btn: ['确认支付']*/
		btnAlign: 'c',
		moveType: 1, //拖拽模式，0或者1
		shadeClose: true, //设置允许点遮罩关闭
		content: $("div#pop-nursingLevelPicLayerOpen"),
		success: function() {
			getNursingLevelPic(nursingCostNo);
			//关闭弹层
			$(".pop-close").click(function() {
				layer.closeAll();
			});
		},
	});
}

function getNursingLevelPic(nursingCostNo){
	var defaultPic = "../static/elderlyInfo/img/zhong_img.png";
	var formDate =
		{
			costNo : nursingCostNo
		};
	$.ajax({
		url: "../elderlyInfo/getCost",
		type: "post",
		dataType: "json",
		data: formDate,
		async: false,
		success: function (res) {
			if (res.code == "200") {
				if (isNull(res.data)) {
					return;
				}
				var cost = res.data;
				if (!isNull(cost.costImg)) {
					$("#nursingPic").attr("src",cost.costImg);
				}else{
					$("#nursingPic").attr("src",defaultPic);
				}

			} else {
				layer.closeAll();
				layer.msg(res.msg, {icon: 2,time:1500});
			}

		}
	});
}